package cn.stylefeng.guns.modular.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.modular.entity.Device;
import cn.stylefeng.guns.modular.entity.Feedback;
import cn.stylefeng.roses.core.reqres.response.ResponseData;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.servlet.ModelAndView;

/**
 * <p>
 * 设备表 服务类
 * </p>
 *
 * @author XiangTianGe
 * @since 2020-04-13
 */
public interface IDeviceService extends IService<Device> {

    ModelAndView edit(Long deviceId);

    LayuiPageInfo deviceList(String keyword, String deviceType, Integer qrcode, String beginTime, String endTime, Page page);

    ResponseData deviceAdd(Device device);

    ResponseData deviceEdit(Device device);

    ResponseData delete(Long deviceId);

    ModelAndView queryDetails(Long deviceId);

    ModelAndView add();

    ResponseData generateCode(Long deviceId);
}
